//
//  PostWindow.h
//  GoldBook
//
//  Created by wmz on 2021/8/17.
//  Copyright © 2021 wmz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TZImagePickerController.h"
NS_ASSUME_NONNULL_BEGIN

@interface PostWindow : NSObject<TZImagePickerControllerDelegate>
//单例
+ (instancetype)shareInstance;
///导航栏跳转
+ (void)windowPushToVC:(nullable UIViewController*)VC currentVC:(nullable UIViewController*)current;
///导航栏跳转
+ (void)windowPushToVC:(nullable UIViewController*)VC currentVC:(nullable UIViewController*)current hideBottom:(BOOL)hide;
///模态跳转
+ (void)windowPresentToVC:(nullable UIViewController*)VC currentVC:(nullable UIViewController*)current;
///模态跳转
+ (void)windowPresentToVC:(nullable UIViewController*)VC;

+ (void)windowPushToVC:(nullable UIViewController*)VC;
///前往web页面
+ (void)pushWeb:(NSString*)url title:(NSString*)title;
///前往主页
+ (void)pushHomeVC:(nullable UIViewController*)VC;
///前往登录页
///@param str 带提示语
+ (void)pushLoginVC:(nullable NSString*)str;
///选择图片
- (void)pushImageVC:(PostResultImage)block;
///选择图片 最大张数
- (void)pushImageVC:(PostResultImage)block maxCount:(NSInteger)maxCount;
/// 延时返回上一级
- (void)popRoot:(BOOL)root;
/// 是否作为根视图
+ (void)toLogonAction:(BOOL)root;
@end

NS_ASSUME_NONNULL_END
